<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
		<script type="text/javascript">
			function prompter() {
				var reply = confirm("js confirm", "")
				console.log("confirm reply: " + reply)
			}
		</script>
    </head>
    <body>
        <input type="button" onclick="prompter()" value="Show prompt" id="button">
    </body>
</html>
